package com.gm;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 13-12-23.
 */
public class ct {
    public static void main(String[] args) {

        Map<String,Employee> staff=new HashMap<String, Employee>();

        staff.put("144-225-556",new Employee("Sink"));
        staff.put("446-990-444",new Employee("Ponk"));

        System.out.println(staff);
        staff.get("144-225-556").setSalary(500);

        for(Map.Entry<String,Employee> entry:staff.entrySet())
        {
            String key=entry.getKey();
            Employee Emp=entry.getValue();

            System.out.println("Key="+key+" Employee="+Emp);
        }
    }
}
